/**
 * 拼接html格式，按照自己的需求格式拼接
 */
//初始化页面时执行的function
/*<thead class="thead-dark">
    <tr>
    <th scope="col">#</th>
    <th scope="col">First</th>
    <th scope="col">Last</th>
    <th scope="col">Handle</th>
    </tr>
    </thead>
    <tbody>
    <tr>
    <th scope="row">1</th>
    <td>Mark</td>
    <td>Otto</td>
    <td>@mdo</td>
    </tr>
    <tr>
    <th scope="row">2</th>
    <td>Jacob</td>
    <td>Thornton</td>
    <td>@fat</td>
    </tr>
    <tr>
    <th scope="row">3</th>
    <td>Larry</td>
    <td>the Bird</td>
<td>@twitter</td>
</tr>*/
window.onload=function(){
    var sb='<tbody>';
    sb+='	<tr>';
    sb+='		<th scope="col">#</th>';

    sb+='		 <th scope="col">First</th>';
    sb+='		 <th scope="col">Last</th>';
    sb+='		 <th scope="col">Handle</th>';

    sb+='	</tr>';
    sb+='	<tr>';
    sb+='		 <th scope="row">1</th>';
    sb+='		<td>Mark</td>';
    sb+='		<td>uUGI</td>';
    sb+='		<td>FAS</td>';
    sb+='	</tr>';

    sb+='</tbody>';
    $("#table2html").html(sb);
    $("#btn").click(function(){
        $("#table2html").table2excel({
            exclude: ".noExl",
            name: "Excel Document Name",
            filename: "myFileName",
            exclude_img: true,
            exclude_links: true,
            exclude_inputs: true
        });
    });
};

